package com.ukao.cashregister.bean;

import android.net.wifi.ScanResult;

import java.util.Comparator;

/**
 * Created by ukaodev on 2017/10/9.
 */

public class ComparatorComment implements Comparator<ScanResult> {

    public int compare(ScanResult arg0, ScanResult arg1) {


        if(arg0 .level > arg1.level){
            return -1;
        }
        if(arg0 .level <arg1.level){
            return 1;
        }
        return 0;
    }
}
